package com.jia.lidao.ui.personal.adapter;

import java.util.ArrayList;
import java.util.List;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;

public class MyPagerAdapter extends FragmentStatePagerAdapter {
	
	private List<Fragment> list =new ArrayList<Fragment>();

	public MyPagerAdapter(FragmentManager fm,List<Fragment> fragmentlist) {
		super(fm);
		if(fragmentlist!=null){
			list=fragmentlist;
		}
		// TODO Auto-generated constructor stub
	}

	@Override
	public Fragment getItem(int arg0) {
		// TODO Auto-generated method stub
		return list.get(arg0);
	}

	@Override
	public int getCount() {
		// TODO Auto-generated method stub
		return list.size();
	}

}
